//
//package com.rt.schedulebase.service.impl;
//import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
//import com.baomidou.mybatisplus.core.conditions.Wrapper;
//import java.util.Map;
//import java.util.HashMap;
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import java.util.List;
//import com.rt.schedulebase.dto.ExamScheduleDto;
//import java.io.Serializable;
//import com.rt.schedulebase.service.IExamScheduleService;
//import com.rt.schedulebase.entity.ExamSchedule;
//import com.rt.schedulebase.mapper.ExamScheduleMapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//public class ExamScheduleServiceImpl extends ServiceImpl<ExamScheduleMapper, ExamSchedule> implements IExamScheduleService {
//    @Override
//    public boolean insertSelective(final ExamSchedule examSchedule) {
//        return this.retBool(Integer.valueOf(((ExamScheduleMapper) this.baseMapper).insert(examSchedule)));
//    }
//    @Override
//    public boolean deleteByPrimaryKey(final String key) {
//        return this.retBool(Integer.valueOf(((ExamScheduleMapper) this.baseMapper).deleteById((Serializable) key)));
//    }
//    @Override
//    public boolean updateByPrimaryKeySelective(final ExamSchedule examSchedule) {
//        return this.retBool(Integer.valueOf(((ExamScheduleMapper) this.baseMapper).updateById(examSchedule)));
//    }
//    @Override
//    public ExamSchedule selectByPrimaryKey(final String key) {
//        return (ExamSchedule) ((ExamScheduleMapper) this.baseMapper).selectById((Serializable) key);
//    }
//    @Override
//    public List<ExamSchedule> getList(final ExamScheduleDto dto) {
//        final QueryWrapper<ExamSchedule> qw = (QueryWrapper<ExamSchedule>) new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("SCHEDULED_DATE", dto.getScheduledDate());
//        map.put("SCHEDULE_APM", dto.getScheduleApm());
//        map.put("APM_CODE", dto.getApmCode());
//        map.put("QUEUE_NAME", dto.getQueueName());
//        map.put("SCHEDULE_STATUS", dto.getScheduleStatus());
//        map.put("HOSPITAL_CODE", dto.getHospitalCode());
//        qw.allEq((Map) map, false);
//        final List<ExamSchedule> list = (List<ExamSchedule>) ((ExamScheduleMapper) this.baseMapper).selectList((Wrapper) qw);
//        return list;
//    }
//    @Override
//    public List<ExamSchedule> getListAll() {
//        return (List<ExamSchedule>) ((ExamScheduleMapper) this.baseMapper).selectList((Wrapper) null);
//    }
//    @Override
//    public boolean delete(final ExamSchedule examSchedule) {
//        final UpdateWrapper<ExamSchedule> uw = (UpdateWrapper<ExamSchedule>) new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("SCHEDULED_ID", examSchedule.getScheduledId());
//        uw.allEq((Map) map, false);
//        return this.retBool(Integer.valueOf(((ExamScheduleMapper) this.baseMapper).delete((Wrapper) uw)));
//    }
//    @Override
//    public boolean update(final ExamSchedule examSchedule) {
//        final UpdateWrapper<ExamSchedule> uw = (UpdateWrapper<ExamSchedule>) new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("SCHEDULED_ID", examSchedule.getScheduledId());
//        uw.allEq((Map) map, false);
//        return this.retBool(Integer.valueOf(((ExamScheduleMapper) this.baseMapper).update(examSchedule, (Wrapper) uw)));
//    }
//    @Override
//    public ExamSchedule getInfo(final ExamScheduleDto dto) {
//        final QueryWrapper<ExamSchedule> qw = (QueryWrapper<ExamSchedule>) new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("SCHEDULED_ID", dto.getScheduledId());
//        map.put("SCHEDULED_DATE", dto.getScheduledDate());
//        map.put("SCHEDULE_APM", dto.getScheduleApm());
//        map.put("HOSPITAL_CODE", dto.getHospitalCode());
//        qw.allEq((Map) map, false);
//        return (ExamSchedule) ((ExamScheduleMapper) this.baseMapper).selectOne((Wrapper) qw);
//    }
//}
